package com.burst.reptile.modular.api.warpper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.burst.reptile.common.utils.DateUtil;
import com.burst.reptile.framework.constant.ConstantFactory;
import com.burst.reptile.framework.web.warpper.BaseControllerWrapper;
import com.burst.reptile.modular.zp.entity.ZpQuestion;

public class ZpQuestionWrapper extends BaseControllerWrapper<ZpQuestion> {

    public ZpQuestionWrapper(Page<ZpQuestion> page) {
        super(page);
    }
    
    public ZpQuestionWrapper(List<ZpQuestion> list) {
        super(list);
    }
    
    @Override
    protected void wrapTheMap(ZpQuestion question) {
    	//设置站点
    	question.setCity(ConstantFactory.me().getAddressName(question.getCity()));
    	question.setTime(DateUtil.timeToFormat(question.getCreateTime()));
    }

}
